package team.bluepen.order.data.database.hive;

import space.lingu.light.log.JdkDefaultLogger;

/**
 * @author RollW
 */
public class OrderRepository {
    private final OrderDao orderDao;

    public OrderRepository() {
        OrderHiveDatabase database = OrderHiveDatabase.getDatabase();
        database.getConnectionPool().setLogger(JdkDefaultLogger.getLogger("Order"));
        orderDao = database.getOrderDao();
    }

    public OrderDao getOrderDao() {
        return orderDao;
    }

}
